package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备故障报修记录对象 fault_repair
 *
 * @author ruoyi
 * @date 2025-03-19
 */
public class FaultRepair extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 报修单号（规则：REP+年月日+3位序列号）
     */
    private String repairCode;

    /**
     * 设备唯一标识编号
     */
    @Excel(name = "设备唯一标识编号")
    private String deviceId;

    /**
     * 设备分类（数控机床/检测设备等）
     */
    @Excel(name = "设备分类", readConverterExp = "数=控机床/检测设备等")
    private String deviceType;

    /**
     * 具体故障现象描述
     */
    @Excel(name = "具体故障现象描述")
    private String repairReason;

    /**
     * 设备所在物理位置
     */
    @Excel(name = "设备所在物理位置")
    private String location;

    /**
     * 故障申报时间
     */
    @Excel(name = "故障申报时间")
    private String registerTime;

    /**
     * 报修人职工编号
     */
    @Excel(name = "报修人职工编号")
    private String reporterId;

    /**
     * 报修人姓名
     */
    @Excel(name = "报修人姓名")
    private String reporterName;

    /**
     * 工单处理进度状态
     */
    private String status;

    public void setRepairCode(String repairCode) {
        this.repairCode = repairCode;
    }

    public String getRepairCode() {
        return repairCode;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setRepairReason(String repairReason) {
        this.repairReason = repairReason;
    }

    public String getRepairReason() {
        return repairReason;
    }

    public void setLocation(String location) {
        this.location = location;
    }

    public String getLocation() {
        return location;
    }

    public void setRegisterTime(String registerTime) {
        this.registerTime = registerTime;
    }

    public String getRegisterTime() {
        return registerTime;
    }

    public void setReporterId(String reporterId) {
        this.reporterId = reporterId;
    }

    public String getReporterId() {
        return reporterId;
    }

    public void setReporterName(String reporterName) {
        this.reporterName = reporterName;
    }

    public String getReporterName() {
        return reporterName;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("repairCode", getRepairCode())
                .append("deviceId", getDeviceId())
                .append("deviceType", getDeviceType())
                .append("repairReason", getRepairReason())
                .append("location", getLocation())
                .append("registerTime", getRegisterTime())
                .append("reporterId", getReporterId())
                .append("reporterName", getReporterName())
                .append("status", getStatus())
                .append("remark", getRemark())
                .append("updateTime", getUpdateTime())
                .append("updateBy", getUpdateBy())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .toString();
    }
}
